package io.zhifei.modules.sys.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.zhifei.modules.sys.system.entity.SysSchoolEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * @ClassNameSchoolDao
 * @Description
 * @Author
 * @Date2020/11/16 16:56
 * @Version V1.0
 **/
@Mapper
public interface SysSchoolDao extends BaseMapper<SysSchoolEntity> {
    /***
     * 获取列表
     * @param page
     * @param name
     * @param startTuition
     * @param endTuition
     * @return
     */
    Page<Map<String, Object>> getList(Page page, @Param("name") String name,
                                      @Param("startTuition") String startTuition, @Param("endTuition") String endTuition,@Param("type")String type);

    /**
     * 删除全部院校
     */
    void deleteAll();
}
